package com.ljj.service.impl;

import com.ljj.dataobject.SellerInfo;
import com.ljj.repository.SellerInfoRepository;
import com.ljj.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by 39716 on 2018/4/19.
 */
@Service
public class SellerInfoServiceImpl implements SellerService{

    @Autowired
    private SellerInfoRepository sellerInfoRepository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        return sellerInfoRepository.findByOpenid(openid);
    }
}
